# -*- coding: utf-8 -*-
#!/usr/bin/python -tt

import Tkinter
import tkMessageBox

class myWindow:

    def __init__(self):

        self.mw = Tkinter.Tk()
        self.mw.option_add("*font", ("Arial", 15, "normal"))
        self.mw.geometry("+250+200")

        self.lab1 = Tkinter.Label(self.mw, text = "Please enter something:")
        self.lab1.pack()

        self.entr1 = Tkinter.Entry(self.mw)
        self.entr1.pack()

        self.btn1 = Tkinter.Button(self.mw, text = "Ok", command = self.btnClick)
        self.btn1.pack()

        self.btn2 = Tkinter.Button(self.mw, text = "Exit", command = self.mw.destroy)
        self.btn2.pack()

        self.mw.mainloop()

    def btnClick(self):
        tkMessageBox.showinfo(title = 'From entr1', message = "Entryfield 1 contains: " + self.entr1.get())

if __name__ == "__main__":
   app = myWindow()